Skip to content

Enable matching temporal as from_type to Utf8View#6872

Merged
tustvold merged 2 commits intoapache:mainfrom
Kev1n8:support-cast-temporal-utf8view
Dec 12, 2024
Merged

Enable matching temporal as from_type to Utf8View#6872
tustvold merged 2 commits intoapache:mainfrom
Kev1n8:support-cast-temporal-utf8view

Conversation

@Kev1n8
Copy link
Copy Markdown
Contributor

@Kev1n8 Kev1n8 commented Dec 12, 2024

Which issue does this PR close?

Closes #6734

Rationale for this change

The original patterns do not contain that matches from Timestamp to Utf8View, causing it throws CastError("Casting from Timestamp(Millisecond, None) to Utf8View not supported")

What changes are included in this PR?

Match from_type.is_primitive() instead of from_type.is_numeric(). Uncomment relevant tests.

Are there any user-facing changes?

No.

@github-actions github-actions Bot added the arrow Changes to the arrow crate label Dec 12, 2024
@tustvold tustvold merged commit e613622 into apache:main Dec 12, 2024
@Kev1n8 Kev1n8 deleted the support-cast-temporal-utf8view branch December 13, 2024 01:30
alamb pushed a commit to alamb/arrow-rs that referenced this pull request Jan 8, 2025
* enable matching temporal from_type

* drop todo message
alamb added a commit that referenced this pull request Jan 10, 2025
* enable matching temporal from_type

* drop todo message

Co-authored-by: Kaifeng Zheng <100595273+Kev1n8@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Temporal -> Utf8View casting

2 participants